home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
etc
/
RCS
/
getlogin.c,v
< prev
next >
Wrap
Text File
|
1988-06-19
|
611b
|
46 lines
head 1.1;
access ;
symbols ;
locks ; strict;
comment @ * @;
1.1
date 88.06.19.14.31.25; author ouster; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/*
* getlogin.c --
*
* Emulate the UNIX getlogin() function. Since we have no /etc/utmp,
* we have to rely on the USER envariable being set correctly...
*
* Copyright (c) 1987 by the Regents of the University of Californai
* All Rights Reserved
*/
#include <sprite.h>
#include <proc.h>
char *
getlogin()
{
char *name;
extern char *getenv();
name = getenv("USER");
return (name);
}
@